package com.fruits.dao;

import com.fruits.domain.Fruit;

import java.sql.SQLException;
import java.util.List;

public interface FruitDao {
    public List<Fruit> findHot();
    public Fruit findByFid(int fid);

    public List<Fruit> findByStr(String keyword) ;
    public List<Fruit> findAll() ;
    public int add(Fruit fruit) ;
    public int update(Fruit fruit) ;
    public int delete(int fid) ;
    public List<Fruit>searchByOrigin();
    public List<Fruit> searchByChinaOrigin() ;

}
